<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>break</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>break</b> -  keyword to interrupt loops</p>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Inside a <tt>
        <b>for</b>
      </tt> or <tt>
        <b>while</b>
      </tt> loop, the command <tt>
        <b>break</b>
      </tt> forces the end
    of the loop.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

k=0; while 1==1, k=k+1; if k &gt; 100 then  break,end; end
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="while.htm">
        <tt>
          <b>while</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="if.htm">
        <tt>
          <b>if</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="for.htm">
        <tt>
          <b>for</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="abort.htm">
        <tt>
          <b>abort</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="return.htm">
        <tt>
          <b>return</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
